@extends('layout.admin')
@section('title','用户修改')
@section('content')
<div class="graphs">
	<h3 class="blank1">用户修改</h3>
		<div class="tab-content">
		<div class="tab-pane active" id="horizontal-form">
			<form class="form-horizontal" action="/user/update" method="post" enctype="multipart/form-data">
				<div class="form-group">
					<label for="focusedinput" class="col-sm-2 control-label">用户名</label>
					<div class="col-sm-4">
						<input class="form-control1" id="focusedinput" name="username" type="text" value="{{$users->username}}">
					</div>
				</div>
				<div class="form-group">
					<label for="inputPassword" class="col-sm-2 control-label">邮箱</label>
					<div class="col-sm-4">
						<input class="form-control1" id="inputPassword" name="email" type="email" value="{{$users->email}}">
					</div>
				</div>
				<div class="form-group">
					<label for="inputPassword" class="col-sm-2 control-label">手机号码</label>
					<div class="col-sm-4">
						<input class="form-control1" id="inputPassword" name="phone" type="text" value="{{$users->phone}}">
					</div>
				</div>
				<div class="form-group">
					<label for="selector1" class="col-sm-2 control-label">权限</label>
					<div class="col-sm-4">
						<select id="selector1" name="auth" class="form-control1">
							<option value="0">请选择:</option>
							<option value="{{$users->auth}}" @if($users->auth==0) selected @endif>未激活</option>
							<option value="{{$users->auth}}" @if($users->auth==1) selected @endif>会员</option>
							<option value="{{$users->auth}}" @if($users->auth==2) selected @endif>管理员</option>
						</select>
					</div>
				</div>
				<div class="form-group">
					<label for="inputPassword" class="col-sm-2 control-label">头像</label>
					<img src="{{$users->face}}" style="width:80px;">
					<div class="col-sm-4">
						<input id="form-control1" type="file" name="face">
					</div>
				</div>
				<div class="panel-footer">
					<div class="row">
						<div class="col-md-8 col-sm-offset-2">
							<button class="btn-success btn">修改</button>
						</div>
					</div>
			 	</div>
			 	{{csrf_field()}}
			 	 <input type="hidden" name="id" value="{{$users->id}}">
			</form>
		</div>
	</div>
</div>
@endsection